package com.zay.a5_buttons;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.widget.TextView;

import androidx.appcompat.app.AppCompatActivity;

public class ShowActivity extends Activity {
    @Override
    protected void onCreate(Bundle savedInstanceState){
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_show);
        TextView tvUserName=findViewById(R.id.tv_username);
        TextView tvPassword=findViewById(R.id.tv_password);
        Intent intent=getIntent();
        String username=intent.getStringExtra("username");
        tvUserName.setText(username);
        String password=intent.getStringExtra("password");
        tvPassword.setText(password);
    }
}
